package com.buddy.sds.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.buddy.sds.auth.entity.SystemDict;
import com.buddy.sds.auth.mapper.result.SystemDictCascasdeResultHandler;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ISystemDictMapper extends BaseMapper<SystemDict> {

    @ResultType(SystemDict.class)
    @Select("select * from t_system_dict")
    void selecCascadetList(Page page, SystemDictCascasdeResultHandler resultHandler);

    @Select("select exists(select dict_id from t_system_dict where dict_ident = #{ident})")
    boolean existByIdent(String ident);

}
